package enums;



public enum FFmpegCodeEnum {

    FFMPEG_NONE(9999, "ffmpeg路径错误"),
    RTSP_ERROR(9999, "rtsp流地址格式错误"),
    FFMPEG_ERROR(9999, "推流失败"),
    FFMPEG_CLOSE_ERROR(9999, "关闭残留的ffmpeg进程失败"),
    FFPROBE_NONE(9999, "ffprobe路径错误"),
    FFPROBE_ERROR(9999, "流地址不可用"),
    UNIQUE_CODE_NONE(9999, "id不存在");

    public Integer getCode() {
        return code;
    }

    FFmpegCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    private final Integer code;
    private final String message;
}
